<template>
	<video v-if="src" class="video" :src="src" autoplay></video>
	<view style="display: none;">{{ src }}</view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const src = ref('')

onLoad((query : any) => {
	src.value = decodeURIComponent(query.src)
})
</script>

<style lang="scss" scoped>
.video {
	width: 100%;
}
</style>